<template>
  <Header />
  <section>
    <el-form :model="form">
      <el-form-item label="" prop="email">
        <el-input v-model="form.email" placeholder="请输入邮箱"></el-input>
      </el-form-item>
      <el-form-item label="" prop="password">
        <el-input v-model="form.password" placeholder="请输入密码"></el-input>
      </el-form-item>
      <el-form-item label="">
        <el-button type="primary" style="width: 100%" @click="login">登录</el-button>
      </el-form-item>
    </el-form>
  </section>
</template>

<script setup>
import { reactive } from 'vue'
import { useRouter } from 'vue-router'
import { resizeWidth } from '@/utils/index.js'
import Header from '@/components/header/index.vue'

const form = reactive({})
const router = useRouter()

const login = () => {
  router.push('/home')
  window.ipcRenderer.send('windowResize', {
    width: resizeWidth(700),
    height: resizeWidth(500)
  })
}
</script>

<style lang="scss" scoped></style>
